﻿using System;

namespace Matrix.MaKaYunShang.Model
{
	/// <summary>
	///卡卷
	/// </summary>
	public class Coupon
	{
        #region 默认属性
        /// <summary>
        /// 主键id
        /// </summary>		
        public int Id { get; set; }
        /// <summary>
        /// 卡卷名称
        /// </summary>		
        public string CouponName { get; set; }
        /// <summary>
        /// 卡类别id
        /// </summary>		
        public int CouponCategoryId { get; set; }
        /// <summary>
        /// 卡卷库存总数量
        /// </summary>		
        public int TotalQuantity { get; set; }
        /// <summary>
        /// 已发数量
        /// </summary>		
        public int SendQuantity { get; set; }
        /// <summary>
        /// 领取数量
        /// </summary>		
        public int ReceiveQuantity { get; set; }
        /// <summary>
        /// 描述
        /// </summary>		
        public string Description { get; set; }
        /// <summary>
        /// 副标题
        /// </summary>		
        public string Subtitle { get; set; }
        /// <summary>
        /// 标题
        /// </summary>		
        public string Title { get; set; }
        /// <summary>
        /// 生效时间
        /// </summary>		
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 失效时间
        /// </summary>		
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>		
        public string Brand { get; set; }
        /// <summary>
        /// (最低消费可用)满减门槛字段，可用于折扣券和代金券，填入后将在前面拼写消费满xx元可用
        /// </summary>		
        public decimal LeastCost { get; set; }
        /// <summary>
        /// 代金券专用，表示减免金额。（单位为元）
        /// </summary>		
        public decimal ReduceCost { get; set; }
        /// <summary>
        /// 折扣券专用，表示打折额度（百分比）。填30就是七折。 
        /// </summary>		
        public decimal DiscountValue { get; set; }
        /// <summary>
        /// 卡卷价值
        /// </summary>		
        public decimal CardValue { get; set; }
        /// <summary>
        /// 使用说明
        /// </summary>		
        public string Instruction { get; set; }
        /// <summary>
        /// 免责声明
        /// </summary>		
        public string Disclaimer { get; set; }
        /// <summary>
        /// 是否为全平台
        /// </summary>		
        public bool IsPlatform { get; set; }
        /// <summary>
        /// 是否限品类
        /// </summary>		
        public bool IsLimitBrand { get; set; }
        /// <summary>
        /// 是否限商品
        /// </summary>		
        public bool IsLimitCommodity { get; set; }
        /// <summary>
        /// 是否限制使用商品品类
        /// </summary>		
        public bool IsLimitCommodityCategory { get; set; }
        /// <summary>
        /// 是否可与其他优惠券同时使用
        /// </summary>		
        public bool IsMultiUse { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>		
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 0有效数据  1已删除
        /// </summary>		
        public bool IsDelete { get; set; }
        #endregion
		
		#region 扩展属性
        /// <summary>
        /// 优惠劵类别
        /// </summary>
	    public string CouponCategoryName { get; set; }
        /// <summary>
        /// 商品arr
        /// </summary>
        public string CommodityLibArr { get; set; }
        /// <summary>
        /// 品类arr
        /// </summary>
        public string CommodityCategoryArr { get; set; }

        public string CommodityLibText { get; set; }

        public string CommodityCategoryText { get; set; }

        /// <summary>
        /// 扩展用户优惠券ID
        /// </summary>
	    public int ConsumerCouponId { get; set; }

        /// <summary>
        /// 扩展用户优惠券类别CODE
        /// </summary>
        public string CategoryCode { get; set; }

	    #endregion
	}
}